using UnityEngine;

public class LogBCWDebugForCamera : MonoBehaviour
{
	[SerializeField]
	private GameObject[] go;

	[SerializeField]
	private Camera _camera;

	private void Update()
	{
		if (BCWDebug.isDebugBuild)
		{
			GameObject[] array = go;
			foreach (GameObject gameObject in array)
			{
				BCWDebug.LogError(gameObject.layer.ToString(), "CAMERA!");
			}
			BCWDebug.LogError(string.Format("Culling Mask {0}  Field of View {1}  Clipping Planes Far {2} Clipping Planes Near", _camera.cullingMask.ToString(), _camera.fieldOfView.ToString(), _camera.farClipPlane.ToString(), _camera.nearClipPlane.ToString()), "CAMERA!");
		}
	}
}
